import * as XLSX from 'xlsx';
const exportToExcel = (tableData: any, fileName: any) => {
    const worksheet = XLSX.utils.json_to_sheet(tableData);
    const workbook = XLSX.utils.book_new();
    XLSX.utils.book_append_sheet(workbook, worksheet, fileName);
    XLSX.writeFile(workbook, fileName);
};

export {
    exportToExcel
}